package com.zjgsu.nftplatform.shiro;

import org.apache.shiro.authc.AuthenticationToken;

/**
 * @author ahy231
 * @date 2021/7/23 11:14
 * @description
 */
public class JWTToken implements AuthenticationToken {

    private final String token;

    public JWTToken(String token) {
        this.token = token;
    }

    @Override
    public Object getPrincipal() {
        return token;
    }

    @Override
    public Object getCredentials() {
        return token;
    }
}
